<template>
  <div class="tabBox">
      <el-tabs v-model="activeName">
        <el-tab-pane label="个人信息" name="archives">
          <archives-index :id="id"></archives-index>
        </el-tab-pane>
        <el-tab-pane label="测评记录" name="record">
          <record :id="id"></record>
        </el-tab-pane>
      </el-tabs>
    </div>
</template>
<script>
import archivesIndex from './archivesIndex.vue'
import record from './record.vue'
export default {
  components: {
    archivesIndex,
    record
  },
  data () {
    return {
      activeName: 'archives',
      id: Number
    }
  },
  created () {
    this.parameterFn()
  },
  methods: {
    parameterFn () {
      this.id = this.$route.query.id
    }
  }
}
</script>
